#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Function:   打开浏览器使用百度搜索识别出的字符
Author:     bear
Version:    2018-1-21 19:00
Contact:
"""

from selenium import webdriver


def search(search_code):
    browser = webdriver.Chrome()
    print '发送打开网页请求'
    browser.get('https://www.baidu.com')
    browser.find_element_by_id('kw').send_keys(search_code)
    browser.find_element_by_id('su').click()
    raw_input("按Enter键结束：")
    browser.quit()
